package com.zhuiyun.educations.api.video.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Comment
 * @Description TODO 课程评论表
 * @Author 杨友朋
 * @Date 2023/7/12 9:35
 **/
@Data
@Table(name = "comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键id(评论表 杨友朋)
     */
    private Integer id;
    /**
     * 评论内容
     */
    private String commentInfo;
    /**
     * 评论人id
     */
    private Integer userId;
    /**
     * 课程id
     */
    private Integer courseId;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date updateTime;
    /**
     * 逻辑删除0显示 1删除
     */
    private Integer delFlag;
}